package com.ruoyi.degree.service.Impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.degree.mapper.BizSchoolsMentorsMapper;
import com.ruoyi.degree.domain.BizSchoolsMentors;
import com.ruoyi.degree.service.IBizSchoolsMentorsService;

/**
 * 管家留言Service业务层处理
 * 
 * @author Polly
 * @date 2025-08-24
 */
@Service
public class BizSchoolsMentorsServiceImpl implements IBizSchoolsMentorsService 
{
    @Autowired
    private BizSchoolsMentorsMapper bizSchoolsMentorsMapper;

    /**
     * 查询管家留言
     * 
     * @param id 管家留言主键
     * @return 管家留言
     */
    @Override
    public BizSchoolsMentors selectBizSchoolsMentorsById(Long id)
    {
        return bizSchoolsMentorsMapper.selectBizSchoolsMentorsById(id);
    }

    /**
     * 查询管家留言列表
     * 
     * @param bizSchoolsMentors 管家留言
     * @return 管家留言
     */
    @Override
    public List<BizSchoolsMentors> selectBizSchoolsMentorsList(BizSchoolsMentors bizSchoolsMentors)
    {
        return bizSchoolsMentorsMapper.selectBizSchoolsMentorsList(bizSchoolsMentors);
    }

    /**
     * 新增管家留言
     * 
     * @param bizSchoolsMentors 管家留言
     * @return 结果
     */
    @Override
    public int insertBizSchoolsMentors(BizSchoolsMentors bizSchoolsMentors)
    {
        return bizSchoolsMentorsMapper.insertBizSchoolsMentors(bizSchoolsMentors);
    }

    /**
     * 修改管家留言
     * 
     * @param bizSchoolsMentors 管家留言
     * @return 结果
     */
    @Override
    public int updateBizSchoolsMentors(BizSchoolsMentors bizSchoolsMentors)
    {
        return bizSchoolsMentorsMapper.updateBizSchoolsMentors(bizSchoolsMentors);
    }

    /**
     * 批量删除管家留言
     * 
     * @param ids 需要删除的管家留言主键
     * @return 结果
     */
    @Override
    public int deleteBizSchoolsMentorsByIds(Long[] ids)
    {
        return bizSchoolsMentorsMapper.deleteBizSchoolsMentorsByIds(ids);
    }

    /**
     * 删除管家留言信息
     * 
     * @param id 管家留言主键
     * @return 结果
     */
    @Override
    public int deleteBizSchoolsMentorsById(Long id)
    {
        return bizSchoolsMentorsMapper.deleteBizSchoolsMentorsById(id);
    }
}
